package com.burke.gwt.client;

public class Rect {
	public double top, left, bottom, right;
	
	public Rect() {
		top = left = bottom = right;
	}
	
	public Rect(double x1, double y1, double x2, double y2) {
		top = y1;
		left = x1;
		bottom = y2;
		right = x2;
	}
	
	public boolean isInside(double x1, double y1) {
		if (((x1 > left) && (x1 < right)) && ((y1 > top) && (y1 < bottom)) ) {
			  return true;
		  }
		  return false;
	}
}
